package com.ck.system.service;

import com.ck.common.entity.SysDictData;
import com.ck.common.entity.SysDictType;
import com.google.protobuf.ServiceException;

import java.util.List;

/**
 * @author changk
 * @date 2024/11/21 17:10
 */
public interface SysDictTypeService {
    List<SysDictData> selectDictDataByType(String dictType);

    List<SysDictType> selectDictTypeList(SysDictType dictType);

    SysDictType selectDictTypeById(Long dictId);

    boolean checkDictTypeUnique(SysDictType dict);

    int insertDictType(SysDictType dict);

    int updateDictType(SysDictType dict);

    void deleteDictTypeByIds(Long[] dictIds) throws ServiceException;

    void resetDictCache();

    void clearDictCache();

    void loadingDictCache();

    List<SysDictType> selectDictTypeAll();
}
